<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div id="pop_up_content">
	<div class="pop_up_title images_13">
		辞职申请
	</div>
	<div class="pop_up_body">
		<form id="editForm" action="quitEntry/quitEntryAction!editData.action">
		<input type="hidden" value="<s:property value='objctForm.id'/>" name="objctForm.id"/>
		<table border="0" cellpadding="0" cellspacing="0" width="450px">
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						<span class="red">*</span>姓名
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="Name" name="objctForm.name" readonly="readonly" type="text" class="dialogy_input" value='<s:property value="objctForm.name"/>'>
				</td>
			</tr>
			<tr>
		    	<td>
		    		<div class="form_input_value" style="margin-right: 8px;">
						部门
					</div>
		    	</td>
		    	<td>
		    		<input style="margin: 0px;" id="code" name="objctForm.dept" readonly="readonly" type="text" class="dialogy_input" value='<s:property value="objctForm.dept"/>'>
		    	</td>
		    </tr>
		    <tr>
		    	<td>
		    		<div class="form_input_value" style="margin-right: 8px;">
		    			职务
		    		</div>
		    	</td>
		    		<td>
		    			<input style="margin: 0px;" id="code" name="objctForm.office" readonly="readonly" type="text" class="dialogy_input" value='<s:property value="objctForm.office"/>'>
		    		</td>
		    	</tr>
		    	<tr>
		    		<td><div class="form_input_value" style="margin-right: 8px;"><span class="red">*</span>入职时间</div></td>
		    		<td>
		    			<input style="margin: 0px;" onclick="WdatePicker();" readonly="readonly" name="objctForm.appointmentDate" type="text" class="dialogy_input required" value='<s:property value="objctForm.appointmentDate"/>'>
		    		</td>
		    	</tr>
		    	<tr>
		    		<td><div class="form_input_value" style="margin-left: 0px;"><span class="red">*</span>辞职原因</div></td>
		    		<td colspan="3">
		    			<textarea rows="5" cols="50" id="quitReason" name="objctForm.quitReason" class="required"><s:property value="objctForm.quitReason"/></textarea>
		    		</td>
		    	</tr>
		    	<tr>
				<td></td>
				<td  class="dialogy_btn_td" >
					<input id="editSubmit" type="button" value="确定" class="btn" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
					<input type="button" value="取消" class="btn" onclick="hideDialog();" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
				</td>
			</tr>
		</table>
		</form>
	</div>
</div>
<script>

	/* 表单提交 */
	i.formSubmit("editSubmit",	//绑定的按钮id
					  "editForm" ,   //提交的表单id
					  function(result){
						  	var jsonMsgObj=new JsonMsgObj(result);
							var  msg=jsonMsgObj.getMessage();
						    var codeId=jsonMsgObj.getCodeid();
							var isOk=jsonMsgObj.getIsok();
							if( isOk ){
							    aerouiAlert(msg);
								hideDialog();// 隐藏窗口
								loadContentLink('<%=basePath %>quitEntry/quitEntryAction!quitEntryList.action');
							}else{		// 如果编辑失败了
							  JsManageInfoHandleException( result , function(msg , codeId , isOk){
							  		hideDialog();// 隐藏窗口
							   });
						   }
						});

</script>
